package com.bobo.eurekaprovider;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bobo
 * @date 2020-12-14
 */
@RestController
public class OrderController {

    @Value("${server.port}")
    private int value;

    @RequestMapping("/getOrder")
    public String getOrder() {
        return "我是订单服务，我的端口为：" + value;
    }
}
